package org.iabako.shared.iservice.report;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import org.iabako.shared.dto.ReportGenerationInputDTO;

/**
 * Created by jose on 22/01/15.
 */
public interface IncomeReportGeneratorServiceAsync {

    void generateIncomeReport(ReportGenerationInputDTO reportGenerationInputDTO, AsyncCallback<String> async);

    public static final class Util {
        private static IncomeReportGeneratorServiceAsync instance;

        public static final IncomeReportGeneratorServiceAsync getInstance() {
            if (instance == null) {
                instance = GWT.create(IncomeReportGeneratorService.class);
            }
            return instance;
        }
    }
}
